// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}



// 全局样式的修改
// el-input-number (controls-position="right")
.el-input-number.is-controls-right {
  .el-input-number__decrease {
  display: none;
  }
  .el-input-number__increase {
  display: none;
  top: 2px; // fix style bug
  }
  &:hover {
  .el-input-number__decrease {
   display: inline-block;
  }
  .el-input-number__increase {
   display: inline-block;
  }
  }
  .el-input__inner {
  text-align: left;
  padding-left: 5px;
  padding-right: 40px;
  }
 }
  
 // el-date-picker datetimerange
 .el-date-editor.el-date-editor--datetimerange {
  .el-range-separator {
  width: 24px;
  color: #999;
  padding: 0;
  }
  .el-range__icon {
  margin-left: 0;
  }
  &.el-input__inner {
  vertical-align: middle;
  padding: 3px 5px;
  }
  &.el-range-editor--medium {
  width: 380px;
  
  .el-range-separator {
   line-height: 30px;
  }
  }
  &.el-range-editor--mini {
  width: 330px;
  
  .el-range-separator {
   line-height: 22px;
  }
  }
 }
  
 // el-date-picker not datetimerange
 .el-date-editor {
  .el-input__prefix {
  left: 0;
  top: 1px;
  }
  .el-input__suffix {
  right: 0;
  top: 1px;
  }
  .el-input__inner {
  padding: 0 25px;
  }
  &.el-input--mini {
  width: 175px;
  }
  &.el-input--medium {
  width: 195px;
  }
 }
  
 // input padding
 .el-input__inner {
  padding: 0 5px;
 }